import Vue from 'vue'
import VueRouter from 'vue-router'
import movieRouter from '@/router/movie'
import mineRouter from '@/router/mine'
import cinemaRouter from '@/router/cinema'

Vue.use(VueRouter)

const routes = [
    movieRouter,
    mineRouter,
    cinemaRouter,
    {
        path: '/*',
        redirect: '/movie'
    }

]

const router = new VueRouter({
    mode: 'history',
    base: process.env.BASE_URL,
    routes
})

export default router